import store from '@/store'

export function hasAuth(key) {
  const roles = store.getters && store.getters.authorities
  return roles.includes(key)
}
